package com.ruoyi.yscggl.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 经费申报明细业务对象 g_jfsbmx
 *
 * @author jiayuan
 * @date 2023-04-20
 */

@Data
public class JfsbmxBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 经费编号
     */
    @NotBlank(message = "经费编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pnNo;

    /**
     * 经费名称
     */
    @NotBlank(message = "经费名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pnName;

    /**
     * 预算资产编号
     */
    @NotBlank(message = "预算资产编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String asNo;

    /**
     * 预算资产名称
     */
    @NotBlank(message = "预算资产名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String asName;

    /**
     * 单位编号
     */
    @NotBlank(message = "单位编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptNo;

    /**
     * 单位名称
     */
    @NotBlank(message = "单位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptName;

    /**
     * 参考型号
     */
    @NotBlank(message = "参考型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String model;

    /**
     * 参考规格
     */
    @NotBlank(message = "参考规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String spec;

    /**
     * 预算数量
     */
    @NotNull(message = "预算数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long anCount;

    /**
     * 计量单位
     */
    @NotBlank(message = "计量单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String units;

    /**
     * 预算单价（单位：元）
     */
    @NotNull(message = "预算单价（单位：元）不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal priceCny;

    /**
     * 预算总价（单位：元）
     */
    @NotNull(message = "预算总价（单位：元）不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal budgetAmount;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
